<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>BabyOS: b_tx.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="2.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">BabyOS
   &#160;<span id="projectnumber">V1.1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_b9223522bb56aee4ab59f7ba381d2163.html">bos</a></li><li class="navelem"><a class="el" href="dir_f2a2cc749b6bfcea90db6730434b0bd6.html">core</a></li><li class="navelem"><a class="el" href="dir_37b66dfbfdffce01c33ebea49c49c2c3.html">inc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">b_tx.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="b__tx_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#ifndef __B_TX_H__</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#define __B_TX_H__</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160; <span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="comment">/*Includes ----------------------------------------------*/</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="b__config_8h.html">b_config.h</a>&quot;</span>  </div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#if _TX_ENABLE</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="structb_t_x___info__t.html">   55</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct</span></div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;{</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structb_t_x___info__t.html#a6b7bb0a51ce5c98f55cd1390bab93b9d">   57</a></span>&#160;    uint8_t *<a class="code" href="structb_t_x___info__t.html#a6b7bb0a51ce5c98f55cd1390bab93b9d">ptxBUF</a>;</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="structb_t_x___info__t.html#adae01b8e5362764fe757f02f6db4d91e">   58</a></span>&#160;    uint16_t <a class="code" href="structb_t_x___info__t.html#adae01b8e5362764fe757f02f6db4d91e">buf_size</a>;</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="structb_t_x___info__t.html#a0b57aa10271a66f3dc936bba1d2f3830">   59</a></span>&#160;    uint8_t <a class="code" href="structb_t_x___info__t.html#a0b57aa10271a66f3dc936bba1d2f3830">state</a>;</div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="structb_t_x___info__t.html#abf7d061f271985d073bcf0578093ea45">   60</a></span>&#160;    uint16_t <a class="code" href="structb_t_x___info__t.html#abf7d061f271985d073bcf0578093ea45">tx_len</a>;</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structb_t_x___info__t.html#a8b731ab3cbae9b42194b3ddda07c862a">   61</a></span>&#160;    uint8_t <a class="code" href="structb_t_x___info__t.html#a8b731ab3cbae9b42194b3ddda07c862a">td_mode</a>;</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="structb_t_x___info__t.html#a90801bc7db78f2b94681975bd2ffd518">   62</a></span>&#160;    <span class="keyword">volatile</span> uint8_t <a class="code" href="structb_t_x___info__t.html#a90801bc7db78f2b94681975bd2ffd518">td_flag</a>;</div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="structb_t_x___info__t.html#a858e2685fb0034acadcd8d48cf6f02b2">   63</a></span>&#160;    uint8_t <a class="code" href="structb_t_x___info__t.html#a858e2685fb0034acadcd8d48cf6f02b2">dev_no</a>;</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="structb_t_x___info__t.html#ab5627d8d8b095c198e2523c44ca380ac">   64</a></span>&#160;    uint32_t <a class="code" href="structb_t_x___info__t.html#ab5627d8d8b095c198e2523c44ca380ac">timeout</a>;</div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="structb_t_x___info__t.html#a06a8a7ab5d60a21b5357adad4eb93393">   65</a></span>&#160;    uint8_t <a class="code" href="structb_t_x___info__t.html#a06a8a7ab5d60a21b5357adad4eb93393">timeout_f</a>;</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="structb_t_x___info__t.html#a6f8059414f0228f0256115e024eeed4b">   66</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structb_t_x___info__t.html#a6f8059414f0228f0256115e024eeed4b">fd</a>;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;}<a class="code" href="structb_t_x___info__t.html">bTX_Info_t</a>;</div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="group___t_x___exported___defines.html#ga7aa1906cd89f143a8b84a94aee6c6a01">   76</a></span>&#160;<span class="preprocessor">#define BTX_NULL            0</span></div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="group___t_x___exported___defines.html#ga044d6a85f234b1b943377d2fad6b9b01">   77</a></span>&#160;<span class="preprocessor">#define BTX_REQ             1</span></div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="group___t_x___exported___defines.html#ga343b082979787f1f513ba177b55974ff">   78</a></span>&#160;<span class="preprocessor">#define BTX_TXING           2</span></div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="group___t_x___exported___defines.html#ga3f44a6868b98c1fe819e71490efac07c">   79</a></span>&#160;<span class="preprocessor">#define BTX_WAIT            3</span></div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="group___t_x___exported___defines.html#gaa20024793ebb81a526e081ddcfb09338">   80</a></span>&#160;<span class="preprocessor">#define BTX_END             4 </span></div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="group___t_x___exported___defines.html#ga69f593320cb6fabe15d8c542beb20cc5">   82</a></span>&#160;<span class="preprocessor">#define BTX_F_SYN           0</span></div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="group___t_x___exported___defines.html#gaf57491ba86ae4fd5dbb9319ddb64534a">   83</a></span>&#160;<span class="preprocessor">#define BTX_F_ASYN          1</span></div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="group___t_x___exported___defines.html#ga9018973ca6a9c00ae2b4c36addb27a15">   85</a></span>&#160;<span class="preprocessor">#define BTX_REQ_LEVEL0      0</span></div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="group___t_x___exported___defines.html#ga6d352ee8cc1803708ed984fad29f4fd1">   86</a></span>&#160;<span class="preprocessor">#define BTX_REQ_LEVEL1      1</span></div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="keywordtype">int</span> <a class="code" href="group___t_x___exported___functions.html#ga2559a6f7eb2673174d7ca0676f1cc192">bTX_CplCallback</a>(<span class="keywordtype">int</span> no);</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="keywordtype">int</span> <a class="code" href="group___t_x___exported___functions.html#ga61ce9d9de75982f0d555892647510c8f">bTX_Regist</a>(uint8_t *pbuf, uint32_t size, uint8_t td_mode, uint8_t dev_no); </div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="keywordtype">int</span> <a class="code" href="group___t_x___exported___functions.html#gad2ecf5eb42e98c674c128c616fd0f8c4">bTX_Request</a>(<span class="keywordtype">int</span> no, uint8_t *pbuf, uint16_t size, uint8_t flag);</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    }</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160; </div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="preprocessor">#endif  </span></div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="comment">/************************ Copyright (c) 2019 Bean *****END OF FILE****/</span></div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div><div class="ttc" id="structb_t_x___info__t_html_a8b731ab3cbae9b42194b3ddda07c862a"><div class="ttname"><a href="structb_t_x___info__t.html#a8b731ab3cbae9b42194b3ddda07c862a">bTX_Info_t::td_mode</a></div><div class="ttdeci">uint8_t td_mode</div><div class="ttdef"><b>Definition:</b> <a href="b__tx_8h_source.html#l00061">b_tx.h:61</a></div></div>
<div class="ttc" id="structb_t_x___info__t_html_ab5627d8d8b095c198e2523c44ca380ac"><div class="ttname"><a href="structb_t_x___info__t.html#ab5627d8d8b095c198e2523c44ca380ac">bTX_Info_t::timeout</a></div><div class="ttdeci">uint32_t timeout</div><div class="ttdef"><b>Definition:</b> <a href="b__tx_8h_source.html#l00064">b_tx.h:64</a></div></div>
<div class="ttc" id="structb_t_x___info__t_html_a6f8059414f0228f0256115e024eeed4b"><div class="ttname"><a href="structb_t_x___info__t.html#a6f8059414f0228f0256115e024eeed4b">bTX_Info_t::fd</a></div><div class="ttdeci">int fd</div><div class="ttdef"><b>Definition:</b> <a href="b__tx_8h_source.html#l00066">b_tx.h:66</a></div></div>
<div class="ttc" id="group___t_x___exported___functions_html_gad2ecf5eb42e98c674c128c616fd0f8c4"><div class="ttname"><a href="group___t_x___exported___functions.html#gad2ecf5eb42e98c674c128c616fd0f8c4">bTX_Request</a></div><div class="ttdeci">int bTX_Request(int no, uint8_t *pbuf, uint16_t size, uint8_t flag)</div></div>
<div class="ttc" id="structb_t_x___info__t_html_a06a8a7ab5d60a21b5357adad4eb93393"><div class="ttname"><a href="structb_t_x___info__t.html#a06a8a7ab5d60a21b5357adad4eb93393">bTX_Info_t::timeout_f</a></div><div class="ttdeci">uint8_t timeout_f</div><div class="ttdef"><b>Definition:</b> <a href="b__tx_8h_source.html#l00065">b_tx.h:65</a></div></div>
<div class="ttc" id="group___t_x___exported___functions_html_ga2559a6f7eb2673174d7ca0676f1cc192"><div class="ttname"><a href="group___t_x___exported___functions.html#ga2559a6f7eb2673174d7ca0676f1cc192">bTX_CplCallback</a></div><div class="ttdeci">int bTX_CplCallback(int no)</div></div>
<div class="ttc" id="structb_t_x___info__t_html_adae01b8e5362764fe757f02f6db4d91e"><div class="ttname"><a href="structb_t_x___info__t.html#adae01b8e5362764fe757f02f6db4d91e">bTX_Info_t::buf_size</a></div><div class="ttdeci">uint16_t buf_size</div><div class="ttdef"><b>Definition:</b> <a href="b__tx_8h_source.html#l00058">b_tx.h:58</a></div></div>
<div class="ttc" id="b__config_8h_html"><div class="ttname"><a href="b__config_8h.html">b_config.h</a></div></div>
<div class="ttc" id="structb_t_x___info__t_html_abf7d061f271985d073bcf0578093ea45"><div class="ttname"><a href="structb_t_x___info__t.html#abf7d061f271985d073bcf0578093ea45">bTX_Info_t::tx_len</a></div><div class="ttdeci">uint16_t tx_len</div><div class="ttdef"><b>Definition:</b> <a href="b__tx_8h_source.html#l00060">b_tx.h:60</a></div></div>
<div class="ttc" id="structb_t_x___info__t_html_a0b57aa10271a66f3dc936bba1d2f3830"><div class="ttname"><a href="structb_t_x___info__t.html#a0b57aa10271a66f3dc936bba1d2f3830">bTX_Info_t::state</a></div><div class="ttdeci">uint8_t state</div><div class="ttdef"><b>Definition:</b> <a href="b__tx_8h_source.html#l00059">b_tx.h:59</a></div></div>
<div class="ttc" id="structb_t_x___info__t_html"><div class="ttname"><a href="structb_t_x___info__t.html">bTX_Info_t</a></div><div class="ttdef"><b>Definition:</b> <a href="b__tx_8h_source.html#l00055">b_tx.h:55</a></div></div>
<div class="ttc" id="structb_t_x___info__t_html_a90801bc7db78f2b94681975bd2ffd518"><div class="ttname"><a href="structb_t_x___info__t.html#a90801bc7db78f2b94681975bd2ffd518">bTX_Info_t::td_flag</a></div><div class="ttdeci">volatile uint8_t td_flag</div><div class="ttdef"><b>Definition:</b> <a href="b__tx_8h_source.html#l00062">b_tx.h:62</a></div></div>
<div class="ttc" id="structb_t_x___info__t_html_a6b7bb0a51ce5c98f55cd1390bab93b9d"><div class="ttname"><a href="structb_t_x___info__t.html#a6b7bb0a51ce5c98f55cd1390bab93b9d">bTX_Info_t::ptxBUF</a></div><div class="ttdeci">uint8_t * ptxBUF</div><div class="ttdef"><b>Definition:</b> <a href="b__tx_8h_source.html#l00057">b_tx.h:57</a></div></div>
<div class="ttc" id="structb_t_x___info__t_html_a858e2685fb0034acadcd8d48cf6f02b2"><div class="ttname"><a href="structb_t_x___info__t.html#a858e2685fb0034acadcd8d48cf6f02b2">bTX_Info_t::dev_no</a></div><div class="ttdeci">uint8_t dev_no</div><div class="ttdef"><b>Definition:</b> <a href="b__tx_8h_source.html#l00063">b_tx.h:63</a></div></div>
<div class="ttc" id="group___t_x___exported___functions_html_ga61ce9d9de75982f0d555892647510c8f"><div class="ttname"><a href="group___t_x___exported___functions.html#ga61ce9d9de75982f0d555892647510c8f">bTX_Regist</a></div><div class="ttdeci">int bTX_Regist(uint8_t *pbuf, uint32_t size, uint8_t td_mode, uint8_t dev_no)</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
